package com.onstar.cn.vehicle.entity;

public enum RequestType {
	UnlockDoorsRequest("UnlockDoorsRequest"), // UNLOCK_DOORS_REQUEST

	LockDoorsRequest("LockDoorsRequest"), // LOCK_DOORS_REQUEST

	VehicleAlertRequest("VehicleAlertRequest"), // VEHICLE_ALERT_REQUEST

	RemoteStartRequest("RemoteStartRequest"), // REMOTE_START_REQUEST

	RemoteStopRequest("RemoteStopRequest"), // REMOTE_STOP_REQUEST

	ConnectRequest("ConnectRequest"), // CONNECT_REQUEST

	DisconnectRequest("DisconnectRequest"), // DISCONNECT_REQUEST

	GetRequestStatusRequest("GetRequestStatusRequest"), // GET_REQUEST_STATUS_REQUEST

	GetVehicleDataRequest("GetVehicleDataRequest"), // GET_VEHICLE_DATA_REQUEST

	GetRequestResultsRequest("GetRequestResultsRequest"), // GET_REQUEST_RESULTS_REQUEST

	GetSubscriberInfoRequest("GetSubscriberInfoRequest"), // GET_SUBSCRIBER_INFO_REQUEST

	SendToTBTRequest("SendToTBTRequest"), // Send to TBT
	SendToNAVRequest("SendToNAVRequest"), // Send to ODD

	UpdateExtendedVehicleInfoRequest("UpdateExtendedVehicleInfoRequest"), // UPDATE_EXTENDED_VEHICLE_INFO_REQUEST

	GetCRMSupportInfoRequest("GetCRMSupportInfoRequest"), // GET_CRM_SUPPORT_INFO_REQUEST

	GetCurrentLocationRequest("GetCurrentLocationRequest"), // getVehicleLocationRequest

	// GetCurrentLocationRequest("GetCurrentLocationRequest"); //
	// GET_CURRENT_LOCATION_REQUEST

	GetHotspotInfoRequest("GetHotspotInfoRequest"),

	GetHotspotStatusRequest("GetHotspotStatusRequest"),

	DisableHotspotRequest("DisableHotspotRequest"),
	
	EnableHotspotRequest("EnableHotspotRequest"),

	SetHotspotInfoRequest("SetHotspotInfoRequest");

	private final String value;

	RequestType(String v) {
		value = v;
	}

	public String getStringValue() {
		return value;
	}

	public static RequestType fromValue(String v) {
		for (RequestType c : RequestType.values()) {
			if (c.value.equals(v)) {
				return c;
			}
		}
		throw new IllegalArgumentException(v);
	}
}
